package com.g8.pethospitallearnbackend.entity;

import java.util.ArrayList;
import java.util.List;

public class StaffExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public StaffExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andStaffIdIsNull() {
            addCriterion("staff_id is null");
            return (Criteria) this;
        }

        public Criteria andStaffIdIsNotNull() {
            addCriterion("staff_id is not null");
            return (Criteria) this;
        }

        public Criteria andStaffIdEqualTo(String value) {
            addCriterion("staff_id =", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdNotEqualTo(String value) {
            addCriterion("staff_id <>", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdGreaterThan(String value) {
            addCriterion("staff_id >", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdGreaterThanOrEqualTo(String value) {
            addCriterion("staff_id >=", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdLessThan(String value) {
            addCriterion("staff_id <", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdLessThanOrEqualTo(String value) {
            addCriterion("staff_id <=", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdLike(String value) {
            addCriterion("staff_id like", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdNotLike(String value) {
            addCriterion("staff_id not like", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdIn(List<String> values) {
            addCriterion("staff_id in", values, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdNotIn(List<String> values) {
            addCriterion("staff_id not in", values, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdBetween(String value1, String value2) {
            addCriterion("staff_id between", value1, value2, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdNotBetween(String value1, String value2) {
            addCriterion("staff_id not between", value1, value2, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffNameIsNull() {
            addCriterion("staff_name is null");
            return (Criteria) this;
        }

        public Criteria andStaffNameIsNotNull() {
            addCriterion("staff_name is not null");
            return (Criteria) this;
        }

        public Criteria andStaffNameEqualTo(String value) {
            addCriterion("staff_name =", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameNotEqualTo(String value) {
            addCriterion("staff_name <>", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameGreaterThan(String value) {
            addCriterion("staff_name >", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameGreaterThanOrEqualTo(String value) {
            addCriterion("staff_name >=", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameLessThan(String value) {
            addCriterion("staff_name <", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameLessThanOrEqualTo(String value) {
            addCriterion("staff_name <=", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameLike(String value) {
            addCriterion("staff_name like", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameNotLike(String value) {
            addCriterion("staff_name not like", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameIn(List<String> values) {
            addCriterion("staff_name in", values, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameNotIn(List<String> values) {
            addCriterion("staff_name not in", values, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameBetween(String value1, String value2) {
            addCriterion("staff_name between", value1, value2, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameNotBetween(String value1, String value2) {
            addCriterion("staff_name not between", value1, value2, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffImgIsNull() {
            addCriterion("staff_img is null");
            return (Criteria) this;
        }

        public Criteria andStaffImgIsNotNull() {
            addCriterion("staff_img is not null");
            return (Criteria) this;
        }

        public Criteria andStaffImgEqualTo(String value) {
            addCriterion("staff_img =", value, "staffImg");
            return (Criteria) this;
        }

        public Criteria andStaffImgNotEqualTo(String value) {
            addCriterion("staff_img <>", value, "staffImg");
            return (Criteria) this;
        }

        public Criteria andStaffImgGreaterThan(String value) {
            addCriterion("staff_img >", value, "staffImg");
            return (Criteria) this;
        }

        public Criteria andStaffImgGreaterThanOrEqualTo(String value) {
            addCriterion("staff_img >=", value, "staffImg");
            return (Criteria) this;
        }

        public Criteria andStaffImgLessThan(String value) {
            addCriterion("staff_img <", value, "staffImg");
            return (Criteria) this;
        }

        public Criteria andStaffImgLessThanOrEqualTo(String value) {
            addCriterion("staff_img <=", value, "staffImg");
            return (Criteria) this;
        }

        public Criteria andStaffImgLike(String value) {
            addCriterion("staff_img like", value, "staffImg");
            return (Criteria) this;
        }

        public Criteria andStaffImgNotLike(String value) {
            addCriterion("staff_img not like", value, "staffImg");
            return (Criteria) this;
        }

        public Criteria andStaffImgIn(List<String> values) {
            addCriterion("staff_img in", values, "staffImg");
            return (Criteria) this;
        }

        public Criteria andStaffImgNotIn(List<String> values) {
            addCriterion("staff_img not in", values, "staffImg");
            return (Criteria) this;
        }

        public Criteria andStaffImgBetween(String value1, String value2) {
            addCriterion("staff_img between", value1, value2, "staffImg");
            return (Criteria) this;
        }

        public Criteria andStaffImgNotBetween(String value1, String value2) {
            addCriterion("staff_img not between", value1, value2, "staffImg");
            return (Criteria) this;
        }

        public Criteria andStaffTitleIsNull() {
            addCriterion("staff_title is null");
            return (Criteria) this;
        }

        public Criteria andStaffTitleIsNotNull() {
            addCriterion("staff_title is not null");
            return (Criteria) this;
        }

        public Criteria andStaffTitleEqualTo(String value) {
            addCriterion("staff_title =", value, "staffTitle");
            return (Criteria) this;
        }

        public Criteria andStaffTitleNotEqualTo(String value) {
            addCriterion("staff_title <>", value, "staffTitle");
            return (Criteria) this;
        }

        public Criteria andStaffTitleGreaterThan(String value) {
            addCriterion("staff_title >", value, "staffTitle");
            return (Criteria) this;
        }

        public Criteria andStaffTitleGreaterThanOrEqualTo(String value) {
            addCriterion("staff_title >=", value, "staffTitle");
            return (Criteria) this;
        }

        public Criteria andStaffTitleLessThan(String value) {
            addCriterion("staff_title <", value, "staffTitle");
            return (Criteria) this;
        }

        public Criteria andStaffTitleLessThanOrEqualTo(String value) {
            addCriterion("staff_title <=", value, "staffTitle");
            return (Criteria) this;
        }

        public Criteria andStaffTitleLike(String value) {
            addCriterion("staff_title like", value, "staffTitle");
            return (Criteria) this;
        }

        public Criteria andStaffTitleNotLike(String value) {
            addCriterion("staff_title not like", value, "staffTitle");
            return (Criteria) this;
        }

        public Criteria andStaffTitleIn(List<String> values) {
            addCriterion("staff_title in", values, "staffTitle");
            return (Criteria) this;
        }

        public Criteria andStaffTitleNotIn(List<String> values) {
            addCriterion("staff_title not in", values, "staffTitle");
            return (Criteria) this;
        }

        public Criteria andStaffTitleBetween(String value1, String value2) {
            addCriterion("staff_title between", value1, value2, "staffTitle");
            return (Criteria) this;
        }

        public Criteria andStaffTitleNotBetween(String value1, String value2) {
            addCriterion("staff_title not between", value1, value2, "staffTitle");
            return (Criteria) this;
        }

        public Criteria andStaffDutyIsNull() {
            addCriterion("staff_duty is null");
            return (Criteria) this;
        }

        public Criteria andStaffDutyIsNotNull() {
            addCriterion("staff_duty is not null");
            return (Criteria) this;
        }

        public Criteria andStaffDutyEqualTo(String value) {
            addCriterion("staff_duty =", value, "staffDuty");
            return (Criteria) this;
        }

        public Criteria andStaffDutyNotEqualTo(String value) {
            addCriterion("staff_duty <>", value, "staffDuty");
            return (Criteria) this;
        }

        public Criteria andStaffDutyGreaterThan(String value) {
            addCriterion("staff_duty >", value, "staffDuty");
            return (Criteria) this;
        }

        public Criteria andStaffDutyGreaterThanOrEqualTo(String value) {
            addCriterion("staff_duty >=", value, "staffDuty");
            return (Criteria) this;
        }

        public Criteria andStaffDutyLessThan(String value) {
            addCriterion("staff_duty <", value, "staffDuty");
            return (Criteria) this;
        }

        public Criteria andStaffDutyLessThanOrEqualTo(String value) {
            addCriterion("staff_duty <=", value, "staffDuty");
            return (Criteria) this;
        }

        public Criteria andStaffDutyLike(String value) {
            addCriterion("staff_duty like", value, "staffDuty");
            return (Criteria) this;
        }

        public Criteria andStaffDutyNotLike(String value) {
            addCriterion("staff_duty not like", value, "staffDuty");
            return (Criteria) this;
        }

        public Criteria andStaffDutyIn(List<String> values) {
            addCriterion("staff_duty in", values, "staffDuty");
            return (Criteria) this;
        }

        public Criteria andStaffDutyNotIn(List<String> values) {
            addCriterion("staff_duty not in", values, "staffDuty");
            return (Criteria) this;
        }

        public Criteria andStaffDutyBetween(String value1, String value2) {
            addCriterion("staff_duty between", value1, value2, "staffDuty");
            return (Criteria) this;
        }

        public Criteria andStaffDutyNotBetween(String value1, String value2) {
            addCriterion("staff_duty not between", value1, value2, "staffDuty");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}